﻿using UnityEngine;
using System.Collections;

public class EquitmentProperty
{
    public int strength;    //力量
    public int intellect;   //智力
    public int agility;     //敏捷
    public int stamina;     //体力
    public Equipment.EquitmentType equitmentType;

    public EquitmentProperty()
    {}

    public EquitmentProperty(int strength, int intellect, int agility, int stamina, Equipment.EquitmentType equitmentType)
    {
        this.strength = strength;
        this.intellect = intellect;
        this.agility = agility;
        this.stamina = stamina;
        this.equitmentType = equitmentType;
    }
}

public class Equipment : KnapsackGood
{
	public int strength;    //力量
	public int intellect;   //智力
	public int agility;     //敏捷
	public int stamina;     //体力
	public Equipment.EquitmentType equitmentType;

	public Equipment(int strength, int intellect, int agility, int stamina, Equipment.EquitmentType equitmentType, BaseProperty baseProperty):base(baseProperty)
    {
		this.strength = strength;
		this.intellect = intellect;
		this.agility = agility;
		this.stamina = stamina;
		this.equitmentType = equitmentType;
	}


    public enum EquitmentType
    {
        None,
        Head,
        Neck,
        chest,
        Ring,
        Leg,
        Bracer,
        Boots,
        Shoulder,
        Belt,
        OffHand
    }

	public override string GetDescribe()
	{
		string baseDescribe = base.GetDescribe();//获取父类中的描述信息

		string equitmentDescribe = string.Format("{0}\n\n<color=blue>装备类型：{1}\n力量：{2}\n智力：{3}\n敏捷：{4}\n体力：{5}</color>", baseDescribe, "兵器", strength, intellect, agility, stamina);

		return equitmentDescribe;
	}
}
